sanitize-filename
A basic filename sanitizer, based on Node's sanitize-filename.
Use like:
extern crate sanitize_filename;
You can also configure a few basic options:
let options = Options ;
let sanitized = sanitize_with_options;
Also provides a basic command line binary. Use like:
Pass a file name to clean to the program (also reads STDIN)
FLAGS:
-r, --replace <r> Replacement characters
--windows, --no-windows Whether to handle filenames for Windows
--truncate, --no-truncate Whether to truncate file names to 255 bytes